home *** CD-ROM | disk | FTP | other *** search
- ; *******************************************************
- ; Example 1 - Open a browser with the form example, fill in a form field and submit the form
- ; *******************************************************
- ;
- #include <IE.au3>
- $oIE = _IE_Example ("form")
- $oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
- $oText = _IEFormElementGetObjByName ($oForm, "textExample")
- _IEFormElementSetValue ($oText, "Hey! It works!")
- _IEFormSubmit ($oForm)
-
- ; *******************************************************
- ; Example 2 - Get a reference to a specific form element and set its value.
- ; In this case, submit a query to the Google search engine
- ; *******************************************************
- ;
- #include <IE.au3>
- $oIE = _IECreate ("http://www.google.com")
- $oForm = _IEFormGetObjByName ($oIE, "f")
- $oQuery = _IEFormElementGetObjByName ($oForm, "q")
- _IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
- _IEFormSubmit ($oForm)